<template>
  <div class="home" style="background-color: #fff">
    <div v-if="loading">
      <div style="height: 20px"></div>
      <van-skeleton title :row="5" loading></van-skeleton>
      <div style="height: 50px"></div>
      <van-skeleton title :row="5" loading></van-skeleton>
    </div>
    <div v-if="!loading && !failShow">
      <div class="box-item">
        <div class="box-item_title">
          {{ review_type == 1 ? "销售订单详情" : "基础信息" }}
        </div>
        <div class="box-item_cell" v-for="item in data.demand">
          <div class="box-item_cell_title">{{ item.title }}</div>
          <a
            v-if="item.url"
            :href="item.url"
            class="box-item_cell_text"
            :class="{ 'box-item_cell_link': item.url }"
            >{{ item.text }}</a
          >
          <div class="box-item_cell_text box-item_cell_link" v-else-if="(item.title =='客户名称') && (review_type == 1)" v-html="item.text" @click="$router.push({path:'/customer_details',query:{id:data.customer_id}})"></div>
          <div class="box-item_cell_text" v-else-if="item.title =='回款账户'">
            <span v-if="item.text.length == 0">无</span>
            <span class="box-item_cell_link" style="margin-right: 6px" v-for="(hk_item,i) in item.text" :key="i"  @click="$router.push({path:'/collection_details',query:{id:hk_item.id}})">{{hk_item.name}}</span>
          </div>
          <div class="box-item_cell_text" v-else v-html="item.text"></div>
        </div>

        <div class="business_order" v-if="review_type == 2">
          <div class="box-item_title">
            关联商单
          </div>
          <div class="box-item_cell">
            <!-- <table border="1" cellspacing="0" cellpadding="0"> -->
            <div class="border">
              <div
                class="order_item"
                v-for="(item, i) in collection_info"
                :key="i"
              >
                <div class="row">
                  <div class="title">商单名称</div>
                  <div class="counten" v-html="item.name"></div>
                  <!-- <div class="counten">{{item.name}}{{item.name}}{{item.name}}</div> -->
                </div>
                <div class="row">
                  <div class="title">回款金额</div>
                  <div class="counten">{{ item.amount | number_format }}元</div>
                </div>
              </div>
            </div>
            <!-- <table cellspacing="0" cellpadding="0">
              <div>
                <tr v-for="(item, i) in collection_info" :key="i">
                  <td class="td_title">商单名称</td>
                  <td class="td_counten" v-html="item.name"></td>
                </tr>
                <tr v-for="(item, i) in collection_info" :key="i">
                  <td class="td_title">回款金额</td>
                  <td class="td_counten">
                    {{ item.amount | number_format }}元
                  </td>
                </tr>
              </div>
            </table> -->
          </div>
        </div>
        <!--  -->
      </div>

      <div
        style="height: 10px; background-color: #f8f8f8"
        v-if="review_type == 1"
      ></div>
      <div class="box-item" v-if="review_type == 1">
        <div class="box-item_title">成本费用详情</div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <img class="cost-cell_top_img" :src="imgList[0]" />
            <div class="cost-cell_top_text">媒介金额</div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">返点比例 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.finance_rebate_ratio }}
                </div>
              </div>
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">计算基数 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.finance_order_amount }}元
                </div>
              </div>
            </div>
            <div class="cost-cell_item_cell">
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">返点金额 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.finance_rebate_amount }}元
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <img class="cost-cell_top_img" :src="imgList[1]" />
            <div class="cost-cell_top_text">艺人分成</div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">分成比例 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.artist_divide_ratio }}
                </div>
              </div>
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">计算基数 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.artist_divide_base }}元
                </div>
              </div>
            </div>
            <div class="cost-cell_item_cell">
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">分成金额 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.artist_divide_amount }}元
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <img class="cost-cell_top_img" :src="imgList[2]" />
            <div class="cost-cell_top_text">项目成本</div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">项目费用 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.project_cost }}元
                </div>
              </div>
              <div class="cost-cell_item_cell_flex">
                <div class="cost-cell_item_cell_title">项目服务费 :</div>
                <div class="cost-cell_item_cell_text">
                  {{ data.cost.project_taxation }}元
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="note">
          <div>备注 :</div>
          <span>{{ data.cost.remark }}</span>
        </div>
        <div class="combined-box">
          <div style="width: 72px">成本合计 :</div>
          <div class="combined-box_text" style="text-align: right; flex: 1">
            {{ data.cost.total_cost }}元
          </div>
        </div>
      </div>
      <div
        style="height: 10px; background-color: #f8f8f8"
        v-if="review_type == 1"
      ></div>
      <div class="box-item employees" v-if="review_type == 1">
        <div class="box-item_title">员工分成详情</div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <!-- <img class="cost-cell_top_img" /> -->
            <div class="cost-cell_top_text">
              {{ data.divide.sale_id_name }}<span>(销售)</span>
            </div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="felx-box">
                <div class="felx-box_left">分成比例(%)</div>
                <div class="numerical">
                  {{ data.divide.sale_divide_ratio }}
                </div>
              </div>
              <div class="felx">
                <div>计算金额(元)</div>
                <div class="numerical">{{ data.divide.sale_divide }}</div>
              </div>
              <div class="felx-box">
                <div class="felx-box_right">分成金额(元)</div>
                <div class="numerical">
                  {{ data.divide.sale_divide_amount }}
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <!-- <img class="cost-cell_top_img" /> -->
            <div class="cost-cell_top_text">
              {{ data.divide.implement_id_name }}<span>(执行)</span>
            </div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="felx-box">
                <div class="felx-box_left">分成比例(%)</div>
                <div class="numerical">
                  {{ data.divide.implement_divide_ratio }}
                </div>
              </div>
              <div class="felx">
                <div>计算金额(元)</div>
                <div class="numerical">
                  {{ data.divide.implement_divide }}
                </div>
              </div>
              <div class="felx-box">
                <div class="felx-box_right">分成金额(元)</div>
                <div class="numerical">
                  {{ data.divide.implement_divide_amount }}
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <!-- <img class="cost-cell_top_img" /> -->
            <div class="cost-cell_top_text">
              {{ data.divide.broker_name }}<span>(经纪人)</span>
            </div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="felx-box">
                <div class="felx-box_left">分成比例(%)</div>
                <div class="numerical">
                  {{ data.divide.broker_divide_ratio }}
                </div>
              </div>
              <div class="felx">
                <div>计算金额(元)</div>
                <div class="numerical">{{ data.divide.broker_divide }}</div>
              </div>
              <div class="felx-box">
                <div class="felx-box_right">分成金额(元)</div>
                <div class="numerical">
                  {{ data.divide.broker_divide_amount }}
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="cost-cell">
          <div class="cost-cell_top">
            <!-- <img class="cost-cell_top_img" /> -->
            <div class="cost-cell_top_text">
              {{ data.divide.signer_name }}<span>(签约人)</span>
            </div>
          </div>
          <div class="cost-cell_item">
            <div class="cost-cell_item_cell">
              <div class="felx-box">
                <div class="felx-box_left">分成比例(%)</div>
                <div class="numerical">
                  {{ data.divide.sign_divide_ratio }}
                </div>
              </div>
              <div class="felx">
                <div>计算金额(元)</div>
                <div class="numerical">{{ data.divide.sign_divide }}</div>
              </div>
              <div class="felx-box">
                <div class="felx-box_right">分成金额(元)</div>
                <div class="numerical">
                  {{ data.divide.sign_divide_amount }}
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="combined-box">
          <div style="width: 72px">成本合计 :</div>
          <div class="combined-box_text" style="text-align: right; flex: 1">
            {{ data.divide.total_cost }}元
          </div>
        </div>
      </div>

      <div style="height: 10px; background-color: #f8f8f8"></div>
      <div class="box-item">
        <div class="box-item_title" style="margin-bottom: 14px">审批流程</div>
        <div
          class="process-box"
          v-for="(i, index) in data.review"
          :class="{ 'process-box_not': i.status == -1 }"
        >
          <div class="boder"></div>
          <div
            class="process-box_tag"
            :class="{
              'process-box_tag_atv': i.status == 1,
              'process-box_tag_gray': i.status == -1,
            }"
          >
            {{ index + 1 }}
          </div>
          <div class="process-box_title">
            <span>{{ i.node_name }}</span>
            <span v-if="index != 0">
              <span class="ok-tag" v-if="i.status == 2">已通过</span>
              <span class="ok-tag err-tag" v-if="i.status == 3">已退回</span>
              <span class="ok-tag info-tag" v-if="i.status == 1">审批中</span>
            </span>
          </div>
          <div class="err-text" v-if="i.status == 3">
            退回至 {{ i.back_node_name }}
          </div>
          <div class="process-box_text" v-if="i.status == -1 || i.status == 1">
            处理人员 {{ i.review_name }}
          </div>
          <div
            class="process-box_text"
            v-if="(i.status == 2 || i.status == 3) && index == 0"
          >
            由 {{ i.review_name }} 提交数据{{
              i.review_time ? i.review_time : i.create_time
            }}
          </div>
          <div
            class="process-box_text"
            v-if="(i.status == 2 || i.status == 3) && index != 0"
          >
            处理人员:&nbsp;{{ i.review_name }}
          </div>
          <div
            class="process-box_text"
            v-if="(i.status == 2 || i.status == 3) && index != 0"
          >
            处理时间:&nbsp;{{ i.review_time ? i.review_time : i.create_time }}
          </div>
          <div class="process-box_text process-box_remark" v-if="i.remark">
            <span> 审批意见:&nbsp;</span>
            <span class="remark-text">
              {{ i.remark }}
            </span>
          </div>
        </div>
        <!-- <div style="height: 34px"></div> -->
      </div>
      <div
        :style="{ height: safeAreaInsetsBottom + 'px' }"
        v-if="data.is_review"
      ></div>
      <div class="bottom-box bottom-box_shadow" v-if="data.is_review">
        <div class="box-item">
          <div class="box-item_title" style="margin-bottom: 10px">审批意见</div>
        </div>
        <div style="padding: 0 15px">
          <textarea
            maxlength="300"
            @input="descInput"
            v-model="remark"
            placeholder="请输入意见"
          />
        </div>
        <div class="btn-box">
          <div class="btn" @click="tabOk">通过</div>
          <div style="flex: 1"></div>
          <div
            class="btn btn-blck"
            :class="{ 'btn-blck_disable': data.back_node.length == 0 }"
            @click="tabErr"
          >
            退回
          </div>
        </div>
      </div>
    </div>

    <div class="mask" v-if="mask">
      <div class="mask-box">
        <div class="mask-box_title">退回指派</div>
        <div class="mask-box_sel">
          <div class="mask-box_sel_title">退回至：</div>
          <div class="mask-box_sel_box" @click="tabSel">
            {{
              backIndex == -1 ? "请选择" : data.back_node[backIndex].node_name
            }}
          </div>
        </div>
        <div class="mask-box_sel_btn">
          <div @click="tabBack">退回</div>
          <div style="color: #a6abc0" @click="tabCancel">取消</div>
        </div>
      </div>
    </div>

    <div class="mask" v-if="okMask"></div>

    <van-popup v-model="show" position="bottom">
      <van-picker
        title="请选择"
        show-toolbar
        :columns="columns"
        @confirm="onConfirm"
        @cancel="onCancel"
      />
    </van-popup>
  </div>
</template>

<script>
// @ is an alias to /src

import { Dialog, Toast, Notify } from "vant";

var safeAreaInsets = require("safe-area-insets");
export default {
  name: "Home",
  components: {},
  data() {
    return {
      data: {
        is_review: false,
      },
      show: false,
      columns: [], ///退回步骤选择数据
      review_type: 2,
      mask: false, //驳回弹窗
      imgList: [
        require("../assets/tubiao.png"),
        require("../assets/chengyuan.png"),
        require("../assets/tongji.png"),
      ],
      href: "",
      loading: true, /// 骨架屏是否显示
      failShow: false, ///是否请求失败
      backIndex: -1,
      okMask: false,
      // demand_id: 0,
      remark: "",
      safeAreaInsetsBottom: 190,
    };
  },
  computed: {
    review_id() {
      return this.$store.getters.getReview_id;
    },
    getUrlParam() {
      return this.$store.getters.getUrlParam;
    },
    getIsLogin() {
      return this.$store.getters.getIsLogin;
    },
    collection_info() {
      return JSON.parse(this.data.hk.collection_info);
    },
  },
  methods: {
    descInput(e) {
      let vm = this;
      if (vm.remark.length >= 300) {
        vm.remark = vm.remark.substr(0, 300);
      }
    },
    //审批通过确认弹窗
    tabOk() {
      let vm = this;
      this.okMask = true;
      Dialog.confirm({
        title: "",
        message: "是否确认通过审批？",
        confirmButtonColor: "#4c90fb",
      })
        .then(() => {
          vm.postReview(1);
          // this.okMask = false;
          // Toast.success("审批已通过");
          // on confirm
        })
        .catch(() => {
          this.okMask = false;
          // on cancel
        });
    },
    //审批驳回确认弹窗
    tabBack() {
      let vm = this;
      if (vm.backIndex == -1) {
        Notify({ type: "danger", message: "退回节点不能为空" });
        return;
      }
      vm.mask = false;
      vm.okMask = true;
      Dialog.confirm({
        title: "",
        message: `确认需要选择退回至${
          vm.data.back_node[vm.backIndex].node_name
        }`,
        confirmButtonColor: "#4c90fb",
      })
        .then(() => {
          // if (vm.remark == "") {
          //   Notify({ type: "danger", message: "审批意见不能为空" });
          //   vm.okMask = false;
          //   return;
          // }

          vm.postReview(2);
          // vm.mask = false;
          // Toast.success("审批已退回");
          // on confirm
        })
        .catch(() => {
          vm.okMask = false;
          // vm.mask = false
          // on cancel
        });
    },
    //审批驳回弹窗
    tabErr() {
      if (this.data.back_node.length == 0) {
        return;
      }
      this.mask = true;
    },
    //审批驳回弹窗取消
    tabCancel() {
      this.mask = false;
      this.backIndex = -1;
    },
    //驳回选择退回到哪里弹窗
    tabSel() {
      this.show = true;
    },
    //驳回选择退回到哪里弹窗 选择确认
    onConfirm(value, index) {
      this.backIndex = index;
      this.show = false;
    },

    //驳回选择退回到哪里弹窗 选择取消
    onCancel() {
      this.show = false;
    },

    /**请求详情
     * demand_id 详情id
     */
    getReviewDetail(loading = true) {
      let vm = this;
      if (loading) {
        vm.loading = true;
      }
      this.$request
        .getReviewDetail({
          demand_id: vm.getUrlParam.demand_id,
          review_type: vm.getUrlParam.review_type,
          review_id: vm.review_id,
        })
        .then(
          (data) => {
            vm.review_type = vm.getUrlParam.review_type;
            if (vm.getUrlParam.review_type == 1) {
              document.title = "商单财务信息审批";
            } else {
              document.title = "回款信息审批";
            }
            vm.data = data;
            vm.loading = false;
            vm.failShow = false;
            vm.columns = data.back_node.map((x) => x.node_name);
          },
          function (error) {
            vm.failShow = true;
            vm.loading = false;

            Toast.fail("请求失败");
          }
        );
    },

    ///审批type 1通过 2驳回
    postReview(type) {
      let vm = this;
      Toast.loading({
        duration: 0,
        message: "提交中...",
        overlay: true,
      });
      let node =
        vm.data.back_node.length > 0 && vm.backIndex != -1
          ? vm.data.back_node[vm.backIndex].node
          : null;
      vm.$request
        .postReview({
          uid: vm.review_id,
          review_type: vm.getUrlParam.review_type,
          demand_id: vm.getUrlParam.demand_id,
          remark: vm.remark,
          node: node,
          type: type,
        })
        .then(
          (data) => {
            Toast.clear();
            if (type == 1) {
              Toast.success("审批已通过");
            } else {
              Toast.success("审批已退回");
            }
            vm.mask = false;
            vm.okMask = false;
            vm.remark = "";
            vm.backIndex = -1;
            // vm.getReviewDetail(false);
            // setTimeout(() => {
            this.$router.push("/");
            // }, 300);
          },
          function (error) {
            Toast.clear();
            vm.okMask = false;
            // vm.failShow = true;
            // vm.loading = false;
            Toast.fail(error);
          }
        );
    },

    async getAdminInfoByCode() {
      let vm = this;
      vm.loading = true;
      await this.$store.dispatch("getAdminInfoByCode");
      if (!vm.getIsLogin) {
        Toast.fail("请求失败");
        /// 未登录
        return;
      }
      vm.getReviewDetail(false);
      /// 登录了  继续做些操作
    },
  },
  mounted() {
    let vm = this;
    this.safeAreaInsetsBottom = 190 - safeAreaInsets.bottom;
    //刷新处理
    if (sessionStorage.getItem("urlParam")) {
      this.$store.commit(
        "mutationsUrlParam",
        JSON.parse(sessionStorage.getItem("urlParam"))
      );
    }
    if (vm.getIsLogin) {
      //列表进入
      vm.getReviewDetail();
    } else {
      vm.getAdminInfoByCode();
    }
  },
};
</script>

<style scoped>
.home {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #f8f8f8;
  padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
}
.box-item {
  background-color: #fff;
  padding: 12px 0;
  padding-bottom: 2px;
}
.box-item_title {
  padding-left: 9px;
  font-size: 14px;
  padding-bottom: 8px;
  color: #110b32;
  position: relative;
  margin-bottom: 10px;
}
.box-item_title::before {
  content: " ";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #f0f1f6;
  bottom: 0;
}
.box-item_cell {
  display: flex;
  padding: 0px 9px;
  margin-bottom: 11px;
  padding-right: 22px;
  /* align-items: center; */
}

.box-item_cell_title {
  font-size: 14px;
  /* font-weight: bold; */
  color: #8a929a;
  font-size: 14px;
  text-align: left;
  width: 100px;
}
.box-item_cell_text {
  font-size: 14px;
  color: #110b32;
  flex: 1;
  align-items: center;
  display: flex;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
}

.cost-cell {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.cost-cell_top {
  display: flex;
  margin-left: 8px;
  align-items: center;
}
.cost-cell_top_img {
  width: 15px;
  height: 15px;
}
.cost-cell_top_text {
  margin-left: 4px;
  font-size: 14px;
  color: #110b32;
}
.cost-cell_item {
  margin-top: 7px;
  margin-left: 9px;
  margin-right: 9px;
  /* margin-bottom: 4px; */
  background: #f9f9fd;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  padding: 7px;
}
.cost-cell_item_cell {
  display: flex;
  font-size: 14px;
  color: #8a929a;
  margin: 3px 0;
  padding: 0 10px;
}
.cost-cell_item_cell div {
  text-align: center;
}

.cost-cell_item_cell_flex {
  flex: 1;
  text-align: left !important;
  display: flex;
}
.numerical {
  color: #110b32;
  margin-top: 5px;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
}
.note span {
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
}
.felx {
  flex: 1;
  overflow: hidden;
  margin: 0 5px;
}
.cost-cell_item_cell span {
  color: #110b32;
  margin-left: 5px;
}
.cost-cell_top_text span {
  color: #5b97ff;
  display: inline-block;
  margin-left: 6px;
}
.cost-cell_item_cell_bottom {
  color: #110b32;
}
.combined-box {
  height: 38px;
  display: flex;
  align-items: center;
  padding-left: 11.5px;
  padding-right: 22px;
  position: relative;
}
.combined-box::before {
  content: " ";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #f0f1f6;
  top: 0;
}
.combined-box div {
  /* flex: 1; */
  font-size: 14px;
  color: #110b32;
}
.note {
  font-size: 14px;
  margin-left: 11.5px;
  margin-right: 22px;
  margin-bottom: 8px;
  display: flex;
}
.note span {
  display: inline-block;
  margin-left: 5px;
  color: #8a929a;
  flex: 1;
}
.process-box {
  padding-bottom: 26px;
  padding-left: 54px;
  position: relative;
  padding-right: 20px;
}
.process-box_title {
  font-size: 14px;
  line-height: 20px;
  color: #110b32;
  display: flex;
  align-items: center;
}
.process-box_text {
  font-size: 14px;
  color: #8a929a;
  line-height: 20px;
  margin-top: 4px;
  word-wrap: break-word;
}
.ok-tag {
  width: 48px;
  height: 19px;
  background: #f5fff6;
  border-radius: 4px;
  border: 1px solid #5ec367;
  font-size: 12px;
  color: #5ec367;
  text-align: center;
  display: inline-block;
  margin-left: 7px;
}
.err-tag {
  border-color: #ea6969;
  background-color: #fff8f7;
  color: #ea6969;
}
.process-box_tag {
  width: 24px;
  height: 24px;
  background: #f1f6ff;
  border: 1px solid #5792ff;
  position: absolute;
  color: #5792ff;
  font-size: 14px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  left: 14px;
  top: -2px;
}
.boder {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 0px;
  border-left: 1px dashed #dce2eb;
}
.process-box_tag_atv {
  background-color: #5792ff;
  color: #fff;
}
.process-box_tag_gray {
  background-color: #f9f9f9;
  color: #d1d1d1;
  border-color: #f9f9f9;
}
.process-box_not .process-box_title {
  color: #8a929a;
}
.process-box_not .process-box_text {
  color: #cacaca;
}
.err-text {
  color: #ea6969;
  font-size: 12px;
  margin-top: 2px;
}
.bottom-box {
  position: fixed;
  height: 190px;
  /* padding-top: 10px; */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
}
textarea {
  background: none;
  outline: none;
  border: none;
  background: #f8f8fb;
  border-radius: 3px;
  height: 52px;
  width: 100%;
  padding: 7px;
  box-sizing: border-box;
  font-size: 13px;
  resize: none;
}
.btn {
  width: 128px;
  height: 36px;
  background: #4c90fb;
  border-radius: 4px;
  font-weight: 600;
  color: #ffffff;
  line-height: 36px;
  letter-spacing: 1px;
  font-size: 16px;
  text-align: center;
}
.btn-box {
  display: flex;
  margin-top: 10px;
  margin-left: 50px;
  margin-right: 50px;
}
.btn-blck {
  border: 1px solid #2880fb;
  height: 34px;
  width: 126px;
  background-color: #fff;
  color: #2880fb;
}
.mask {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.39);
}
.mask-box {
  width: 289px;
  height: 176px;
  background: #ffffff;
  border-radius: 8px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}
.mask-box_title {
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  color: #1b1e2b;
  margin-top: 13px;
  margin-bottom: 20px;
}
.mask-box_sel_title {
  font-size: 13px;
  color: #1b1e2b;
}
.mask-box_sel {
  display: flex;
  align-items: center;
  margin: 0 18px;
}
.mask-box_sel_box {
  height: 33px;
  background: #f8f8fb;
  border-radius: 4px;
  border: 1px solid #e3e7f4;
  font-size: 13px;
  color: #a6abc0;
  flex: 1;
  line-height: 33px;
  padding-left: 9px;
  box-sizing: border-box;
  margin-left: 3px;
}
.mask-box_sel_btn {
  font-size: 16px;
  display: flex;
  margin: 0 18px;
  margin-top: 40px;
}
.mask-box_sel_btn div {
  flex: 1;
  text-align: center;
  font-weight: 500;
  color: #2459fd;
}
.info-tag {
  background-color: #f4fbff;
  border-color: #5b97ff;
  color: #5b97ff;
}
.box-item_cell_link {
  color: #1455d4;
}
.btn-blck_disable {
  background-color: #ddd;
  border-color: #ddd;
  color: #fff;
}
.cost-cell_item_cell_title {
  width: 80px;
  text-align: left !important;
  float: left;
}
.cost-cell_item_cell_text {
  float: left;
  flex: 1;
  overflow: hidden;
  text-align: left !important;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
  color: #110b32;
  margin-right: 5px;
}
.combined-box_text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.felx-box {
  /* width: 30%; */
  /* flex: 1; */
  overflow: hidden;
  width: 86px;
}
.felx-box_right {
  text-align: right !important;
}
.felx-box_left {
  text-align: left !important;
}
.process-box_remark {
  display: flex;
}
.remark-text {
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
  flex: 1;
}

/* 商单表格样式 */
.business_order .border {
  width: 100%;
  border: solid rgb(232, 232, 232);
  border-width: 1px 0px 0px 1px;
}
.business_order .order_item {
  border: solid rgb(232, 232, 232);
  border-width: 0px 1px 1px 0px;
  font-size: 14px;
}
.business_order .order_item .row {
  display: flex;
}
.business_order .order_item .row:first-child div {
  padding: 4px 10px 2px;
}
.business_order .order_item .row:last-child div {
  padding: 2px 10px 4px;
}
.business_order .order_item .row .title {
  min-width: 60px;
  text-align: center;
  border: solid rgb(232, 232, 232);
  border-width: 0px 1px 0px 0px;
  color: #8a929a;
}
.business_order .order_item .row .counten {
  color: #110b32;
}
</style>
